import { ref, computed } from "vue";
import { defineStore } from "pinia";
import axios from 'axios'


export const dogStores = defineStore("dog1", () => {
  const dog = ref('');
  
axios({
    url: 'https://api.gmit.vip/Api/Dog',
    method: 'GET',
    params: {
        format: 'json',
    }
}).then( res => {
    dog.value=res.data
}).catch( e => {
    dog.value=e
})

  return {dog };
});

